package com.forever7776.life.core.entity.send;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 发送邮箱记录表
 * </p>
 *
 * @author kz
 * @since 2018-01-29
 */
@TableName("send_email_record")
public class SendEmailRecord extends Model<SendEmailRecord> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 发送人的邮箱
     */
	@TableField("send_email")
	private String sendEmail;
    /**
     * 收件人的邮箱
     */
	@TableField("receive_email")
	private String receiveEmail;
    /**
     * 发送类型(admin:后台系统 web:用户系统 user:用户)
     */
	private String type;
    /**
     * 发送者ID
     */
	@TableField("user_id")
	private String userId;
    /**
     * 发送状态
     */
	@TableField("send_status")
	private Integer sendStatus;
    /**
     * 发送的时间
     */
	@TableField("insert_date")
	private Date insertDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSendEmail() {
		return sendEmail;
	}

	public void setSendEmail(String sendEmail) {
		this.sendEmail = sendEmail;
	}

	public String getReceiveEmail() {
		return receiveEmail;
	}

	public void setReceiveEmail(String receiveEmail) {
		this.receiveEmail = receiveEmail;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(Integer sendStatus) {
		this.sendStatus = sendStatus;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SendEmailRecord{" +
			", id=" + id +
			", sendEmail=" + sendEmail +
			", receiveEmail=" + receiveEmail +
			", type=" + type +
			", userId=" + userId +
			", sendStatus=" + sendStatus +
			", insertDate=" + insertDate +
			"}";
	}
}
